﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace NutriStat
{
    public partial class ImportFormatWeightDialog : NutriDialog
    {
        public ImportFormatWeightDialog()
        {
            InitializeComponent();
        }

        private void ImportFormatWeightDialog_Load(object sender, EventArgs e)
        {
            
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            if (radioButtonKG.Checked)
                result = MeasurementUnits.Kilogram.Abbreviation;
            else if (radioButtonLB.Checked)
                result = MeasurementUnits.Pound.Abbreviation;
            else
                return;

            this.Close();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
